package com.demo.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import com.demo.model.Alarm;
import com.demo.model.RestfulResult;

@Service
public class AlarmService {
	private static final Logger logger = LoggerFactory.getLogger(AlarmService.class);

	public RestfulResult list(String uuid) {
		if (!StringUtils.hasText(uuid)) {
			logger.error("参数格式不正确");
			return new RestfulResult(false, "参数格式不正确");
		}
		return new RestfulResult(true, "查询成功", new Alarm(uuid));
	}
}
